import request from '@/utils/request'

const innovation = {
  // 显示系统平台投入人员情况列表
  list(params) {
    return request.get('/kjpt/innovationStudio/list',{params});
  },
  // 显示系我的平台投入人员情况列表
  myList(params) {
    return request.get('/kjpt/innovationStudio/myList',{params});
  },
  // 新增一次平台人员投入
  add(data) {
    return request.post('/kjpt/innovationStudio/add', data);
  },
  // 修改一次平台人员投入信息
  edit(data) {
    return request.post('/kjpt/innovationStudio/update', data);
  },
  // 根据投入信息id获取某次人员投入详情
  get(id) {
    return request.get(`/kjpt/innovationStudio/detail/${id}`);
  },
  // 根据投入信息id获取某次人员投入详情
  getByPlatformId(id) {
    return request.get(`/kjpt/platformMemberInput/getByPlatformId/${id}`);
  },
  delete(id){
    return request.post(`/kjpt/innovationStudio/delete/${id}`)
  },
}

export default innovation;
